﻿using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using ControleEstoque.Entidades.ControleAtivoDataSetTableAdapters;

/// <summary>
/// Summary description for SolicitacaoAtivo
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
// [System.Web.Script.Services.ScriptService]
public class SolicitacaoAtivo : System.Web.Services.WebService
{
    SolicitacaoAtivoTableAdapter _adapter;

    public SolicitacaoAtivo()
    {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
        _adapter = new SolicitacaoAtivoTableAdapter();
    }

    [WebMethod]
    public ControleEstoque.Entidades.ControleAtivoDataSet.SolicitacaoAtivoDataTable GetData()
    {
        return _adapter.GetData();
    }

    [WebMethod]
    public int Update(int AtivoId, global::System.Nullable<int> AvisoId, global::System.Nullable<int> SistemaCompraId, decimal SolicitacaoAtivoQuantidade, System.DateTime SolicitacaoAtivoData, global::System.Nullable<global::System.DateTime> SolicitacaoAtivoDataAtendida, int Original_SolicitacaoAtivoId)
    {
        return _adapter.Update(AtivoId, AvisoId, SistemaCompraId, SolicitacaoAtivoQuantidade, SolicitacaoAtivoData, SolicitacaoAtivoDataAtendida, Original_SolicitacaoAtivoId);
    }
    [WebMethod]
    public int Insert(int AtivoId, global::System.Nullable<int> AvisoId, global::System.Nullable<int> SistemaCompraId, decimal SolicitacaoAtivoQuantidade, System.DateTime SolicitacaoAtivoData, global::System.Nullable<global::System.DateTime> SolicitacaoAtivoDataAtendida)
    {
        return _adapter.Insert(AtivoId, AvisoId, SistemaCompraId, SolicitacaoAtivoQuantidade, SolicitacaoAtivoData, SolicitacaoAtivoDataAtendida);
    }
}

